<? 
	include '../libraries/open_db_connection.php';
	$sql="SELECT * FROM `gallery` WHERE `active` = 0";
	$result = mysql_query($sql) or die("Cannot get hidden images<BR>" . $sql);
	for ($i=0;$i<mysql_num_rows($result);$i++)
	{
		$image_details = mysql_fetch_assoc($result);
		echo "<A href='gallery_admin.php?realm=blog&action=show&picture={$image_details['ID']}&main={$_GET['entry']}&oldpic={$_GET['oldpic']}'>Select {$image_details['title']}
		<img src='../images/{$image_details['image_thumbnail']}' alt='{$image_details['audio_description']}' />
		</A><BR>";	
	
	}
	include '../libraries/close_db_connection.php'
?>
